/* 小红书风格的用户列表页面样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

/* 头部导航栏 - 与主站保持一致 */
header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
   
}

.header-container h1 {
    font-size: 1.5rem;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #f8f6f6;
}

.welcome-message {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.logout-link {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
}

.logout-link:hover {
    color: #fe2c55;
}

/* 移除全局样式重置和头部样式，让它们使用style.css中的定义 */

/* 用户列表容器 - 只保留用户列表特有的样式 */
.users-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background-color: white;
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow 0.3s;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

/* 用户卡片网格 */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.user-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-card-content {
    padding: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* 保留剩余的用户列表特有样式 */
.user-details {
    margin-left: 15px;
}

.user-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.user-details p {
    font-size: 0.9rem;
    color: #666;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
}

.follow-btn {
    width: 100%;
    padding: 10px;
    background-color: #fe2c55;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.follow-btn:hover {
    background-color: #e6264c;
}

.load-more {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background-color: white;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

/* 响应式设计 - 只保留用户列表相关的响应式样式 */
@media (max-width: 768px) {
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .users-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .users-grid {
        grid-template-columns: 1fr;
    }
}